package com.foreknow.service;

import com.foreknow.bean.Employee;

import java.sql.SQLException;

public interface EmployeeService {
    /**
     * 添加员工信息
     * @param employee 对象
     */
    public abstract void add(Employee employee) throws SQLException;



    /**
     * 查询所有员工信息
     * @return
     */
    public abstract Employee[] getQueryAll();

    /**
     * 根据id查询某个员工
     * @param id
     * @return
     */
    public abstract Employee getQueryById(int id);

    /**
     * 修改员工信息
     * @param employee
     * @return
     */
    public abstract Employee update(Employee employee);
}
